<template>
  <div class="custom-v-model">
    <div>当前show的值：{{ show }}</div>
    <div>当前text的值：{{ text }}</div>
    <button @click="show = !show">切换显示/隐藏</button>
    <br />
    <CompVModelChild v-model:textModel.trim="text" v-model="show"></CompVModelChild>
  </div>
</template>

<script setup lang="ts">
import CompVModelChild from '@/components/CompVModelChild.vue'
import { ref } from 'vue'
const show = ref(true)
const text = ref('lixiao')
</script>

<style scoped lang="scss"></style>
